<template>
    <div>
        <el-dialog
            width="60%"
            title="详情"
            :visible.sync="visible"
            :close-on-click-modal="false">

            <div class="table_form_wrap">

            </div>


            <div slot="footer" class="dialog-footer">
                <el-button @click="visible = false">取 消</el-button>
                <el-button @click="handleSubmit()" type="primary" :submitLoading="submitLoading">提 交</el-button>
            </div>

        </el-dialog>
    </div>
</template>

<script>
export default {
    components: {
    },
    data() {
        return {
            visible: false,
            submitLoading: false,
            empId: null

        }
    },

    methods: {
        init(id) {
            // 情况表单数据
            this.empId = id || null
            this.visible = true

            this.$nextTick(() => {
                this.getInfo(this.empId)
            })
        },

        /**
         * 详细信息
         */
        async getInfo(id) {
            if (id) {
                const res = await this.$http({
                    url: '/hr/employee/info/' + id,
                    method: 'GET'
                })
                // this.form = Object.assign({}, res.data)
                console.log(res.data);
            }
        },

    }
};
</script>

<style lang="scss" scoped></style>
